<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:f="jakarta.faces.core" xmlns:ui="jakarta.faces.facelets"
		xmlns:h="jakarta.faces.html" >
<h:head>
	<h:outputStylesheet name="style.css" />
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
</h:head>

<h:body>
	<h2>JSF Converter demo</h2>
 


	<br/>
    <h:form>
        <h:outputLabel for="intValue" value="Integer Value:" />
        <h:inputText id="intValue" value="#{converterBean.intValue}" />
        <br />

        <h:outputLabel for="doubleValue" value="Double Value:" />
        <h:inputText id="doubleValue" value="#{converterBean.doubleValue}" />
        <br />

        <h:outputLabel for="dateValue" value="Date Value:" />
        <h:inputText id="dateValue" value="#{converterBean.dateValue}">
            <!-- Built-in date converter with a custom pattern -->
            <f:convertDateTime pattern="yyyy-MM-dd" />
        </h:inputText>
        <h:message for="dateValue" style="color: red;" />
        <br />

        <h:commandButton value="Submit" action="#{converterBean.submit}" />
    </h:form>

</h:body>
</html>